package org.dreamwork.jasmine2.restful;

/**
 * Created with IntelliJ IDEA.
 * User: seth.yang
 * Date: 14-11-17
 * Time: 下午3:49
 */
public abstract class AbstractRestfulAPI/*<P, R> implements IRestfulAPI<P, R>*/ {
    protected RestfulAPIContext context;
/*

    @Override
    public R get (P parameter) throws RestfulAPIException {
        throw new UnsupportedOperationException ("get");
    }

    @Override
    public R post (P parameter) throws RestfulAPIException  {
        throw new UnsupportedOperationException ("post");
    }

    @Override
    public R put (P parameter) throws RestfulAPIException {
        throw new UnsupportedOperationException ("put");
    }

    @Override
    public R delete (P parameter) throws RestfulAPIException  {
        throw new UnsupportedOperationException ("delete");
    }

    @Override
    public R head (P parameter) throws RestfulAPIException  {
        throw new UnsupportedOperationException ("head");
    }

    @Override
    public R trace (P parameter) throws RestfulAPIException  {
        throw new UnsupportedOperationException ("trace");
    }

    @Override
    public R connect (P parameter) throws RestfulAPIException  {
        throw new UnsupportedOperationException ("connect");
    }
*/

//    @Override
    protected RestfulAPIContext getContext () {
        return context;
    }

    void setContext (RestfulAPIContext context) {
        this.context = context;
    }
}